{% extends "base_html.html" %}

{% load appengine_helpers %}

{% block page_body %}

<!-- start header -->
<div id="header">
	<a href="/">
		<div id="logo">
			<h1>What You ...</h1>
			<p>Tell the world what you are upto, in every possible way</p>
		</div>
	</a>
	<!--
	<div id="search">
		<form method="get" action="">
			<fieldset>
			<input id="s" type="text" name="s" value="" />
			<input id="x" type="submit" value="Search" />
			</fieldset>
		</form>
	</div>
	-->
</div>
<!-- end header -->
<!-- start menu -->
<div id="menu">
	{% block navigation_menu %}
		<ul>
			<li class="{% block menu_class_home %}{% endblock %}"><a href="/">Home</a></li>
			{% block content_login %}
				{% if user %}
					<li class="{% block menu_class_add_friend %}{% endblock %}"><a href="/friends/add">Add Friend</a></li>
					<li><a href="{{ logout_url }}">Logout</a></li>
					{% if is_admin %}
						<li><a href="/_ah/admin">Admin</a><li>
					{% endif %}
				{% else %}
					<li><a href="{{ login_url }}">Login</a></li>
				{% endif %}
			{% endblock %}
			{% block menu_custom %}{% endblock %}
		</ul>
	{% endblock %}
</div>
<!-- end menu -->
<!-- start page -->
<div id="page">
	<!-- start content -->
	<div id="content">
		<div id="page_content">
			{% block content_main %}{% endblock %}
		</div>
	</div>
	<!-- end content -->
	<!-- start sidebar -->
	<div id="sidebar">
		<ul>
			{% block menu_01 %}{% endblock %}
			{% block menu_02 %}{% endblock %}
		</ul>
	</div>
	<!-- end sidebar -->
	<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
<div id="footer">
	<p>Site/Theme Design by <a href="http://www.freecsstemplates.org/" target="_blank">Free CSS Templates</a> &nbsp;&bull;&nbsp; Icons kindly supplied by <a href="http://www.famfamfam.com/" target="_blank">FAMFAMFAM</a>.</p>
</div>

{% endblock %}